package com.quanyan.club.mapper;

import com.quanyan.club.entity.db.TbActivity;
import com.quanyan.club.entity.db.TbActivityMultimedia;
import com.quanyan.club.entity.db.TbClubActivity;
import com.quanyan.club.entity.vo.resp.RespClubActivity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by yue.yuan on 2016/11/30.
 */
public interface ClubActivityCRUDMapper {

    List<RespClubActivity> queryClubActivityListByCriteria(@Param("map")Map<String,Object> map);

    int countClubActivityListByCriteria(@Param("map")Map<String,Object> map);

    int batchUpdateDelete(@Param("map")Map<String, Object> map);

    int batchInsertMedia(List<TbActivityMultimedia> list);

    int countCycleRangeActivity(@Param("map")Map<String,Object> map);

    List<Integer> selectCycleRangeActivity(@Param("map")Map<String,Object> map);

    List<RespClubActivity> queryUnSettlementActivity(@Param("map")Map<String,Object> map);

    int countUnSettlementActivity(@Param("map")Map<String,Object> map);

    int countUnAutoSettleActivity(@Param("map")Map<String,Object> map);

    List<TbClubActivity> queryUnAutoSettleActivity(@Param("map")Map<String,Object> map);

    List<TbActivity> selectAfterWeekActivity(@Param("map")Map<String,Object> map);

    int countAfterWeekActivity(@Param("map")Map<String,Object> map);

    List<RespClubActivity> queryClubActivityListByFree(@Param("map")Map<String,Object> map);

    int countClubActivityListByFree(@Param("map")Map<String,Object> map);

    int countCycleRangeEffect(@Param("map")Map<String,Object> map);

    Integer firstClubActivity(@Param("uid") int uid);

    int firstActivity(@Param("uid") int uid);

    List<Integer> queryClubIdsByUid(@Param("uid") int uid);

    Integer selectMyLastActivity(@Param("uid") int uid);
}
